---
layout: single
property_name: border-style
---

<section id="border-style" class="property">
  <header class="property-header">
    <nav class="property-links">
      <a class="property-links-direct" href="{{site.url}}/property/border-style/" data-property-name="border-style" data-tooltip="Single page for this property">Permalink</a>
      <a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="border-style">Share</a>
      <a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/border-style" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a>
    </nav>
    <h2 class="property-name">
      <a href="#border-style"><span>#</span>border-style</a>
    </h2>
    <div class="property-description">
      <p>Defines the style of the element&#39;s borders.</p>

    </div>

  </header>

    <style type="text/css">.border-style { padding: 1em;border-width: 4px; }</style>




    <section class="example">
      <header class="example-header">
        <p class="example-name">
            <code class="example-default" data-tooltip="This is the property's default value">default</code>


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="border-style: none;">border-style: none;</code>
        </p>
        <div class="example-description">
          <p>Removes the element&#39;s borders.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div border-style " id="border-style-none">Hello world</div>
        </div>
      </aside>
          <style type="text/css">#border-style-none{ border-style:none;}</style>
    </section>
    <section class="example">
      <header class="example-header">
        <p class="example-name">


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="border-style: dotted;">border-style: dotted;</code>
        </p>
        <div class="example-description">
          <p>Turns the border into a sequence of dots.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div border-style " id="border-style-dotted">Hello world</div>
        </div>
      </aside>
          <style type="text/css">#border-style-dotted{ border-style:dotted;}</style>
    </section>
    <section class="example">
      <header class="example-header">
        <p class="example-name">


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="border-style: dashed;">border-style: dashed;</code>
        </p>
        <div class="example-description">
          <p>Turns the border into a sequence of dashes.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div border-style " id="border-style-dashed">Hello world</div>
        </div>
      </aside>
          <style type="text/css">#border-style-dashed{ border-style:dashed;}</style>
    </section>
    <section class="example">
      <header class="example-header">
        <p class="example-name">


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="border-style: solid;">border-style: solid;</code>
        </p>
        <div class="example-description">
          <p>Turns the border into a solid line.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div border-style " id="border-style-solid">Hello world</div>
        </div>
      </aside>
          <style type="text/css">#border-style-solid{ border-style:solid;}</style>
    </section>
    <section class="example">
      <header class="example-header">
        <p class="example-name">


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="border-style: double;">border-style: double;</code>
        </p>
        <div class="example-description">
          <p>Splits the border into two lines.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div border-style " id="border-style-double">Hello world</div>
        </div>
      </aside>
          <style type="text/css">#border-style-double{ border-style:double;}</style>
    </section>
    <section class="example">
      <header class="example-header">
        <p class="example-name">


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="border-style: groove;">border-style: groove;</code>
        </p>
        <div class="example-description">
          <p>Sets an inset style to the borders.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div border-style " id="border-style-groove">Hello world</div>
        </div>
      </aside>
          <style type="text/css">#border-style-groove{ border-style:groove;}</style>
    </section>

</section>
